import http from '@/utils/http'

export function configInfo() {
  return http.request({
    url: '/common/config/info/get',
    method: 'get'
  })
}

export function upload(data) {
  return http.request({
    method: 'post',
    url: '/files/upload',
    headers: {
      "Content-Type": "multipart/form-data"
    },
    onUploadProgress: (e) => {
      console.log(e)
    },
    data
  })
}
